<div>
  <div ng-repeat="ele in item.data">

    <div ng-switch="ele.id">

        <!-- 支付类型 -->
        <div ng-switch-when="tpsi.pay_type">
          <div class="form-group">
            <label class="col-sm-2 control-label">{{ele.title}}</label>
            <div class="col-sm-10">

            <form class="form-inline" role="form">
              <div class=" fl">
                <label ng-repeat="item in ele.info"
                class="i-checks  checkbox-inline">
                  <input type="radio" value={{item.value}} name={{ele.id}}
                  ng-checked="result[ele.id] == item.value"
                  ng-model="result[ele.id]"
                  
                  >
                  <i></i>
                  {{item.name}}
                </label>
              </div>
              <div ng-show="result['tpsi.pay_type'] == '1'">
                <label class="fl control-label ml10">未支付</label>
                <div class=" fl ml10">
                  <input type="number" class="form-control" 
                  ng-model="result['tpsi.auto_cancel_minute']"
                  style="width:70px;" 
                  >
                </div>
                <label class="fl control-label ml10">分钟后，取消订单</label>
              </div>
            </form>

            </div>
          </div>
        </div>




        <!-- 短信配置 -->
        <div ng-switch-when="tpsi.sms_type">

          <div class="form-group">
            <label class="col-sm-2 control-label">{{ele.title}}</label>
            <div class="col-sm-10">
              <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="ele.value == '1'"
                  name={{ele.id}}
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="result[ele.id]"
                  ng-disabled=ele.lock
                >
                <i></i>
              </label>
              <!-- 选择短信模板 -->
              <ui-select ng-model="result['tpsi.sms_templet']" theme="bootstrap"
                
                class="mt10"
                ng-show="result['tpsi.sms_type'] == '1'"
                ng-change="selectobj['smsinfo'].change(result['tpsi.sms_templet'])"
                >
                  <ui-select-match placeholder="请选择一个短信模板......">
                  {{$select.selected.sms_template_id}}
                  </ui-select-match>
                  <ui-select-choices 
                  repeat="item.sms_template_id as item in selectobj['smsinfo']['data'] | filter: $select.search">
                    <span ng-bind-html="item.sms_template_id | highlight: $select.search"></span>
                    <div ng-bind-html="item.sms_diy | highlight: $select.search"
                      style="color:red;"
                    ></div>
                  </ui-select-choices>
              </ui-select>

              <div ng-if="selectobj['smsinfo']['txt'] != ''" class="alert alert-info mt10">
                {{selectobj['smsinfo']['txt']}}
              </div>

              <!-- 短信补充说明 -->
              <textarea class="form-control mt10" rows="3"
                ng-model="result['tpsi.sms_diy']"
                ng-show="result['tpsi.sms_type'] == '1'"
                placeholder='短信补充说明'
              ></textarea>
              <span class="help-block m-b-none">{{ele.tip}}</span>
            </div>
          </div>




        </div>





        <!-- 使用日期范围 -->
        <div ng-switch-when="tpsp.use_date_type">

          <div class="form-group">
          <label class="col-sm-2 control-label">{{ele.title}}</label>
            <div class="col-sm-10">
                <label ng-repeat="item in ele.info"
                class="i-checks  checkbox-inline">
                  <input type="radio" value={{item.value}} name={{ele.id}}
                  ng-checked="result[ele.id] == item.value"
                  ng-model="result[ele.id]"
                  ng-disabled=ele.lock
                  >
                  <i></i>
                  {{item.name}}
                </label>

                <div ng-show="result['tpsp.use_date_type'] == 'calendar_date'"
                  class="mt20"
                >
                  <label class="fl control-label">游客选定的游玩日期起 </label>
                  <div class=" fl mr10 ml10">
                    <input type="number" class="form-control" 
                    ng-model="result['tpsp.valid_days_after_usedate']"
                    style="width:70px;" 
                    ng-disabled=ele.lock
                    >
                  </div>
                  <label class="fl control-label"> 天内有效</label>
                </div>


                <div ng-show="result['tpsp.use_date_type'] == 'BUY_DATE'"
                  class="mt20"
                >
                  <label class="fl control-label">游客购买日期起 </label>
                  <div class=" fl ml10 mr10">
                    <input type="number" class="form-control" 
                    ng-model="result['tpsp.valid_days_after_buydate']"
                    style="width:70px;" 
                    ng-disabled=ele.lock
                    >
                  </div>
                  <label class="fl control-label"> 天内有效</label>
                </div>


                <div ng-show="result['tpsp.use_date_type'] == 'PERIOD_DATE'"
                  class="mt20"
                >
                  <div class="w fl" >
                    <div class="fl mr10" style="margin-top: 7px;" >
                      有效期限：
                    </div>

                    <div class="input-group w-md fl">
                      <input type="text" class="form-control" 
                      datepicker-popup="yyyy-MM-dd" 
                      ng-model="dateshow['tpsp.period_model_start_date'].label" 
                      is-open="dateshow['tpsp.period_model_start_date'].opened" 
                      ng-required="true" close-text="Close" readonly
                      />
                      <span class="input-group-btn" >
                        <button type="button" class="btn btn-default" 
                        ng-click="open($event, dateshow['tpsp.period_model_start_date'])"
                        ng-disabled=ele.lock
                        >
                        <i class="glyphicon glyphicon-calendar"></i></button>
                      </span>
                    </div>

                    <div class="fl ml10 mr10" style="margin-top: 7px;" > 至 </div>

                    <div class="input-group w-md fl">
                      <input type="text" class="form-control" 
                      datepicker-popup="yyyy-MM-dd" 
                      ng-model="dateshow['tpsp.period_model_end_date'].label" 
                      is-open="dateshow['tpsp.period_model_end_date'].opened" 
                      ng-required="true" close-text="Close" readonly
                      />
                      <span class="input-group-btn" >
                        <button type="button" class="btn btn-default" 
                        ng-click="open($event, dateshow['tpsp.period_model_end_date'])"
                        ng-disabled=ele.lock
                        >
                        <i class="glyphicon glyphicon-calendar"></i></button>
                      </span>
                    </div>
                  </div>

                  <div class="w fl mt20">
                    <div class="fl mr10" style="margin-top: 7px;" >
                      周几有效：{{$scope | json}}
                    </div>

                    <label ng-repeat="item1 in model['tpsp.period_model_valid_week'].info"
                    class="i-checks checkbox-inline"
                    ng-disabled=ele.lock
                    >
                      <input type="checkbox" value={{item1.value}}
                      ng-checked="result['tpsp.period_model_valid_week'][item1.value]"
                      name='tpsp.period_model_valid_week'
                      ng-model="result['tpsp.period_model_valid_week'][item1.value]"
                      >
                      <i></i>
                      {{item1.name}}
                    </label>
                  </div>


                  <div class="w fl mt20" >
                    <div class="fl mr10" style="margin-top: 7px;" >
                      禁用日期：
                    </div>

                    <div class="input-group w-md fl">
                      <input type="text" class="form-control" 
                      datepicker-popup="yyyy-MM-dd" 
                      ng-model="dateshow['tpsp.period_model_invalid_date'].label" 
                      is-open="dateshow['tpsp.period_model_invalid_date'].opened" 
                      ng-required="true" close-text="Close" readonly
                      />
                      <span class="input-group-btn" >
                        <button type="button" class="btn btn-default" 
                        ng-click="open($event, dateshow['tpsp.period_model_invalid_date'])">
                        <i class="glyphicon glyphicon-calendar"></i></button>
                      </span>
                    </div>
                  </div>


                  <div class="w fl mt20" >
                    <div class="fl mr10" style="margin-top: 7px;" >
                      库存数量：
                    </div>

                    <div class="input-group w-md fl">
                      <input type="text" class="form-control" 
                      ng-model="result['tpsp.period_model_stock']"
                      ng-disabled=ele.lock
                      >

                    </div>
                    <div class="fl ml10 mr10" style="margin-top: 7px;" > 0不限库存 </div>
                  </div>


                  <!-- <div class="w fl mt20" 
                  ng-show="result['tpsp.period_model_market_price'] != undefined">
                    <div class="fl mr10" style="margin-top: 7px;" >
                      市场价格：
                    </div>

                    <div class="input-group w-md fl">
                      <input type="number" class="form-control" 
                      ng-model="result['tpsp.period_model_market_price']"
                      >
                    </div>
                  </div> -->



                  <div class="w fl mt20" >
                    <div class="fl mr10" style="margin-top: 7px;" >
                      设置价格：
                    </div>

                    <div class="input-group fl">
                      <table class="table table-bordered">
                        <thead>
                          <tr>
                            <th class="text-center">市场价格</th>
                            <th class="text-center">建议零售价</th>
                            <th class="text-center">费率%</th>
                            <th class="text-center">结算价</th>
                            <th class="text-center">佣金额</th>
                          </tr>
                        </thead>
                        <tbody>
                          <tr>
                            <td>
                              <input type="number" class="form-control" 
                                ng-model="result['tpsp.period_model_market_price']"
                                style="width:100px;" 
                              >
                            </td>
                            <td>
                              <input type="number" class="form-control" 
                                ng-model="result['tpsp.period_model_guide_price']"
                                style="width:100px;" 
                                ng-disabled=pp.guide
                                ng-change="pricechange()"
                              >
                            </td>
                            <td>
                              <input type="number" class="form-control" 
                                ng-model="result['tpsp.period_model_rate']"
                                style="width:100px;" 
                                ng-disabled=pp.rate
                                ng-change="pricechange()"
                              >
                            </td>
                            <td>
                              <input type="number" class="form-control" 
                                ng-model="result['tpsp.period_model_settle_price']"
                                style="width:100px;" 
                                ng-disabled=pp.settle
                                ng-change="pricechange()"
                              >
                            </td>
                            <td>
                              <input type="number" class="form-control" 
                                ng-model="result['tpsp.period_model_rate_price']"
                                style="width:100px;" 
                                ng-disabled=pp.ratePrice
                                ng-change="pricechange()"
                              >
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </div>


                </div>

            </div>
          </div>


        </div>



        <!-- 可使用时间 -->
        <div ng-switch-when="tpsp.">
          <div class="form-group">day_usetime_period_start
            <label class="col-sm-2 control-label">有效时间</label>
            <div class="col-sm-10">

              <timepicker ng-model="timeshow['tpsp.day_usetime_period_start'].label" ng-change="changed1()" 
              hour-step="hstep" minute-step="mstep" 
              show-meridian="ismeridian"
              class="fl"
              ></timepicker>

              <div class="fl ml10 mr10" style="margin-top: 40px;">至</div>

              <timepicker ng-model="timeshow['tpsp.day_usetime_period_end'].label" ng-change="changed2()" 
              hour-step="hstep" minute-step="mstep" 
              show-meridian="ismeridian"
              class="fl"
              ></timepicker>

            </div>
          </div>
        </div>


        
        <!-- 选择票种 -->
        <div ng-switch-when="tpsi.need_ticket_type_type">
          <div class="form-group">
            <label class="col-sm-2 control-label">选择票种</label>
            <div class="col-sm-10">

              <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="result['tpsi.need_ticket_type_type'] == 1"
                  name={{tpsi.need_ticket_type_type}}
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="result['tpsi.need_ticket_type_type']"
                  ng-disabled=ele.lock
                >
                <i></i>
              </label>

              <button
                ng-show="result['tpsi.need_ticket_type_type'] == 1"
                ng-click="setticketype()"
               class="btn m-b-xs w-xs btn-info">选择票种</button>


              <ul class="list-group mt10"
              ng-show="result['tpsi.need_ticket_type_type'] == 1"
              >
                <li class="list-group-item"
                ng-repeat="item in selectobj['ticketTypeList']"
                >
                  <a href
                  ng-click="tickettypeinfo(item)"
                  >{{item.name}}</a>
                </li>
                
              </ul>

            </div>
          </div>
        </div>





        <!-- <div ng-switch-when="tpsp.refund_type">

        asddasdasdas


        </div> -->



        
      <div ng-switch-default>

        <dlqform ></dlqform>

      </div>
    </div>

    <div class="line line-dashed b-b line-lg pull-in"
    ng-if="ele.show !== 'no'"
    ></div>
  </div>
</div>